package com.win.servlet;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @Author:
 * @Date: 2024/7/19 12:10
 * @Description:
 */
public class LoginServlet extends HttpServlet {
    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        System.out.println("进入了login");
        String username = req.getParameter("username");
        String password = req.getParameter("password");
        System.out.println(username +":"+password);
        resp.sendRedirect("/s3/success.jsp");
    }

}
